<?php
class Account_Form_Account_Detail extends Zend_Form
{

	public function __construct(Zend_Controller_Action $controller)
	{
		//account_fullname
		$account_fullname = $this->createElement ( 'text', 'account_fullname' )
			->setLabel ( "Họ tên" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_title = $this->createElement ( 'text', 'account_title' )
			->setLabel ( "Danh xưng" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_nation = $this->createElement ( 'text', 'account_nation' )
			->setLabel ( "Quốc gia" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_city = $this->createElement ( 'text', 'account_city' )
			->setLabel ( "Tỉnh / thành phố" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_district = $this->createElement ( 'text', 'account_district' )
			->setLabel ( "Quận / huyện" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_address = $this->createElement ( 'text', 'account_address' )
			->setLabel ( "Địa chỉ" )
			->setAttribs ( array ( 'class' => 'input_text lock' ) )
		;
		
		$account_desk_phone = $this->createElement ( 'text', 'account_desk_phone' )
			->setLabel ( "SĐT bàn" )
			->setAttribs ( array ( 'class' => 'input_text lock' ) )
		;
		
		$account_phone = $this->createElement ( 'text', 'account_phone' )
			->setLabel ( "SĐT di động" )
			->setAttribs ( array ( 'class' => 'input_text lock' ) )
		;
		
		$account_username = $this->createElement ( 'text', 'account_username' )->setLabel ( "Tài khoản" )->setAttrib ( 'class', 'lock' );
		
		$account_birthday = $this->createElement ( 'text', 'account_birthday' )
			->setLabel ( "Ngày sinh" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$account_position = $this->createElement ( 'text', 'account_position' )
			->setLabel ( "Chức vụ" )
			->setAttribs ( array ( 'class' => 'lock' ) )
		;
		
		$this->addElements ( array (
			$account_username, $account_password, $account_repassword, $account_title, $account_fullname, $account_birthday, $account_nation, $account_city, $account_district, $account_address, $account_phone, $account_desk_phone,$account_position 
		) );
		$controller->getHelper ( "common" )->form ( $this );
	}
}